import sys
import pygame

class Blue_window:
    
    def __init__(self):
        pygame.init()
        self.screen = pygame.display.set_mode((640, 480))
        self.image = pygame.image.load('12_alienInvasion\\images\\alien.png')
        self.screen_rect = self.screen.get_rect()
        self.image_rect = self.image.get_rect()
        self.image_rect.center = self.screen_rect.center
    
    def run_game(self):
       
        while True:
            for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    sys.exit()
            self.screen.fill((230, 230, 230))
            self.screen.blit(self.image, self.image_rect)
            pygame.display.flip()

game = Blue_window()
game.run_game()